<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 * $Log$
 *
 */
set_time_limit(0);
include($_SERVER["DOCUMENT_ROOT"]."/common/AllWeb.inc.php");
$arrWeb = array();
foreach($_arrWeb as $key => $arrV){
	$arrWeb[] = $arrV[0]."@".$arrV[3];
}
//$arrCon = file("http://secure.luckyball.cc/crontab/getOnlineUser.php?AllWeb=".join(",", $arrWeb));
//print join("", $arrCon);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://192.168.5.21/crontab/getOnlineUser.php");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1); 
curl_setopt($ch, CURLOPT_POSTFIELDS, "AllWeb=".implode(",", $arrWeb));
//print "GameDate=".$_data["GameDate"]."&AllWeb=".join(",", $arrWeb);
$ret = curl_exec ($ch);
curl_close ($ch);

print $ret;
?>